﻿using System;

public partial class Admin_ReportVoid : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DateTime fromdate = DateTime.Now.AddMonths(-1);
            txttodate.Text = DateTime.Now.ToString("dd-MMM-yyyy");
            txtfromdate.Text = fromdate.ToString("dd-MMM-yyyy");
        }
    }
    protected void btnview_Click(object sender, EventArgs e)
    {
        Response.Redirect("PreviewVoid.aspx?From=" + txtfromdate.Text +"&To=" + txttodate.Text);
    }
}
